# coding:utf-8
# filename: Face.py
# author by: Face

# while 循环：设x为公鸡,y为母鸡,z为小鸡
x = 0
while x <= 100:
    y = 0
    while y <= 100:
        z = 0
        while z <= 100:
            if x + y + z == 100 and 5*x + 3*y + z/3 ==100:
                print('公鸡：',x,'母鸡：',y,'小鸡：',z)
            z += 1
        y +=1
    x +=1


# for 循环
count = 0
for gj in range(0,101):
    for mj in range(0,101):
        for xj in range(0,101):
            if gj + mj + xj ==100 and 5*gj + 3*mj +xj/3 ==100:
                print('公鸡{}只,母鸡{}只,小鸡{}只'.format(gj,mj,xj))
                count += 1
print("共有以上{}种方案".format(count))